<div id="auth">
    <?php
    $this->pageTitle=Yii::app()->name . ' - Login';
    $this->breadcrumbs=array(
        'Вход на сайт',
    );
    ?>

    <h1>Вход на сайт</h1>

    <div class="form">
        <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'login-form',
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
            ),
        )); ?>

        <div class="row">
            <label for="username">Телефон или e-mail:</label>
            <input id="username" type="text" name="username" required="" />
            <?php echo $form->error($model,'username'); ?>
        </div>

        <div class="row">
            <label for="password">Ваш пароль:</label>
            <input id="password" type="password" name="password" required="" />
            <?php echo $form->error($model,'password'); ?>
        </div>


        <div class="row rememberMe">
            <input id="rememberMe" type="checkbox" name="rememberMe" value="1" />
            <label for="rememberMe">Запамятати мене</label>
            <?php echo $form->error($model,'rememberMe'); ?>
        </div>

        <div class="row buttons">
            <button class="btn button" type="submit"><span>Войти</span></button>
        </div>

        <?php $this->endWidget(); ?>
    </div>
</div>